hacker rank python runner up score solution